<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>产品系列 - 甜品店</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <style>
        .product-card {
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: visible;
        }
        .product-card > div {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .product-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .product-card button {
            position: relative;
            z-index: 20;
        }
        .image-zoom {
            position: relative;
            z-index: 10;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="bg-transparent fixed w-full z-50">
        <div class="max-w-7xl mx-auto px-4">
            <div class="flex justify-between items-center h-16">
                <!-- 左侧Logo -->
                <div class="flex-shrink-0">
                    <a href="./index.html" class="flex items-center">
                        <img src="cake/logo.jpeg" alt="Logo" class="h-16 w-16 object-contain">
                    </a>
                </div>
                
                <!-- 中间导航链接 -->
                <div class="flex-1 flex justify-center space-x-12">
                    <a href="./index.html" class="text-sm text-gray-600 hover:text-[#B3927F]">首页</a>
                    <a href="./products.html" class="text-sm text-[#B3927F]">产品系列</a>
                    <a href="./about.html" class="text-sm text-gray-600 hover:text-[#B3927F]">品牌故事</a>
                    <a href="./contact.html" class="text-sm text-gray-600 hover:text-[#B3927F]">联系我们</a>
                </div>
                
                <!-- 右侧功能图标 -->
                <div class="flex items-center space-x-6">
                    <img src="cake/个人.png" alt="个人" class="h-6 w-6 cursor-pointer">
                    <div class="relative">
                        <img src="cake/消息.png" alt="消息" class="h-6 w-6 cursor-pointer">
                        <span class="absolute -top-2 -right-2 bg-[#B3927F] text-white text-xs rounded-full w-4 h-4 flex items-center justify-center">0</span>
                    </div>
                    <img src="cake/搜索.png" alt="搜索" class="h-6 w-6 cursor-pointer">
                </div>
            </div>
        </div>
    </nav>

    <!-- 产品分类 -->
    <div class="bg-[#F5F5F5] py-8">
        <div class="container mx-auto px-4">
            <h1 class="text-3xl font-bold text-[#B3927F] text-center mb-8">我们的产品</h1>
            <div class="flex justify-center space-x-4">
                <button onclick="filterProducts('all')" class="category-btn active px-6 py-2 bg-[#B3927F] text-white rounded-full">全部</button>
                <button onclick="filterProducts('cake')" class="category-btn px-6 py-2 text-gray-600 hover:bg-[#B3927F] hover:text-white rounded-full">蛋糕</button>
                <button onclick="filterProducts('dessert')" class="category-btn px-6 py-2 text-gray-600 hover:bg-[#B3927F] hover:text-white rounded-full">甜点</button>
                <button onclick="filterProducts('drink')" class="category-btn px-6 py-2 text-gray-600 hover:bg-[#B3927F] hover:text-white rounded-full">饮品</button>
            </div>
        </div>
    </div>

    <!-- 产品列表 -->
    <section class="py-16 container mx-auto px-4 bg-[#FDF8F5]">
        <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-8" id="products-container">
            <!-- 蛋糕系列 -->
            <!-- 产品卡片 1 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="cake">
                <div class="relative">
                    <div class="product-info">
                        <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(1)">
                            <img src="cake/product0.jpeg" alt="草莓奶油蛋糕" class="w-full aspect-square object-cover">
                        </div>
                        <div class="text-center mb-auto">
                            <h3 class="text-lg font-medium mb-3">草莓奶油蛋糕</h3>
                            <p class="text-[#B3927F] font-medium">¥198.00<span class="text-sm text-gray-500 ml-1">/1.0磅</span></p>
                        </div>
                    </div>
                    <div class="mt-6 text-center">
                        <button onclick="addToCart(1)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 产品卡片 2 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="cake">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(2)">
                        <img src="cake/product1.jpeg" alt="巧克力慕斯" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">巧克力慕斯</h3>
                        <p class="text-[#B3927F] font-medium">¥198.00<span class="text-sm text-gray-500 ml-1">/1.0磅</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(2)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 产品卡片 3 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="cake">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(3)">
                        <img src="cake/product2.jpeg" alt="水果拿破仑" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">水果拿破仑</h3>
                        <p class="text-[#B3927F] font-medium">¥198.00<span class="text-sm text-gray-500 ml-1">/1.0磅</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(3)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 产品卡片 4 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="cake">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(5)">
                        <img src="cake/product4.jpeg" alt="蓝莓芝士" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">蓝莓芝士</h3>
                        <p class="text-[#B3927F] font-medium">¥198.00<span class="text-sm text-gray-500 ml-1">/1.0磅</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(5)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 产品卡片 5 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="cake">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(6)">
                        <img src="cake/product5.jpeg" alt="榴莲千层" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">榴莲千层</h3>
                        <p class="text-[#B3927F] font-medium">¥198.00<span class="text-sm text-gray-500 ml-1">/1.0磅</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(6)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 产品卡片 6 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="cake">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(7)">
                        <img src="cake/product6.jpeg" alt="芒果千层" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">芒果千层</h3>
                        <p class="text-[#B3927F] font-medium">¥198.00<span class="text-sm text-gray-500 ml-1">/1.0磅</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(7)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 产品卡片 7 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="cake">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(8)">
                        <img src="cake/product7.jpeg" alt="红丝绒" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">红丝绒</h3>
                        <p class="text-[#B3927F] font-medium">¥198.00<span class="text-sm text-gray-500 ml-1">/1.0磅</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(8)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 产品卡片 8 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="cake">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(9)">
                        <img src="cake/product8.jpeg" alt="巧克力树莓" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">巧克力树莓</h3>
                        <p class="text-[#B3927F] font-medium">¥198.00<span class="text-sm text-gray-500 ml-1">/1.0磅</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(9)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 甜点系列 -->
            <!-- 甜点卡片 1 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="dessert">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(10)">
                        <img src="cake/cake1.png" alt="草莓慕斯杯" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">草莓慕斯杯</h3>
                        <p class="text-[#B3927F] font-medium">¥68.00<span class="text-sm text-gray-500 ml-1">/份</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(10)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 甜点卡片 2 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="dessert">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(11)">
                        <img src="cake/cake2.png" alt="抹茶提拉米苏" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">抹茶提拉米苏</h3>
                        <p class="text-[#B3927F] font-medium">¥58.00<span class="text-sm text-gray-500 ml-1">/份</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(11)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 甜点卡片 3 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="dessert">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(12)">
                        <img src="cake/cake3.png" alt="巧克力布朗尼" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">巧克力布朗尼</h3>
                        <p class="text-[#B3927F] font-medium">¥48.00<span class="text-sm text-gray-500 ml-1">/份</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(12)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 甜点卡片 4 -->
            <div class="bg-white p-6 shadow-sm product-card animate-on-scroll rounded-xl" data-category="dessert">
                <div class="relative">
                    <div class="image-zoom overflow-hidden mb-6 rounded-lg cursor-pointer" onclick="showPreview(13)">
                        <img src="cake/cake4.png" alt="蓝莓芝士杯" class="w-full aspect-square object-cover">
                    </div>
                    <div class="text-center">
                        <h3 class="text-lg font-medium mb-3">蓝莓芝士杯</h3>
                        <p class="text-[#B3927F] font-medium">¥58.00<span class="text-sm text-gray-500 ml-1">/份</span></p>
                    </div>
                    <div class="mt-4 text-center">
                        <button onclick="addToCart(13)" class="group relative bg-white text-[#B3927F] px-8 py-2.5 rounded-full border-2 border-[#B3927F] hover:bg-[#B3927F] hover:text-white transition-all duration-300 flex items-center justify-center space-x-2 overflow-hidden shadow-sm hover:shadow-md">
                            <span class="relative z-10 font-medium">加入购物车</span>
                            <svg class="w-5 h-5 relative z-10 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
                            </svg>
                            <div class="absolute inset-0 bg-gradient-to-r from-[#B3927F] to-[#9A7B69] opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 产品预览模态框 -->
    <div id="preview-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 z-50">
        <div class="fixed inset-0 flex items-center justify-center p-4">
            <div class="bg-white rounded-lg shadow-xl max-w-md w-full">
                <!-- 模态框内容将通过 JavaScript 动态加载 -->
            </div>
        </div>
    </div>

    <!-- 添加购物车成功提示框 -->
    <div id="toast-message" class="hidden fixed bottom-24 right-8 bg-white border-l-4 border-[#B3927F] text-gray-700 px-6 py-4 rounded-lg shadow-xl z-50 transition-all duration-300 transform translate-y-[100%] flex items-center space-x-3">
        <div class="bg-[#B3927F] rounded-full p-1">
            <svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
            </svg>
        </div>
        <div class="flex flex-col">
            <span class="font-medium">成功添加到购物车</span>
            <span class="text-sm text-gray-500">您可以继续选购或前往购物车结算</span>
        </div>
        <button onclick="document.getElementById('toast-message').classList.add('hidden')" class="ml-4 text-gray-400 hover:text-gray-600">
            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
            </svg>
        </button>
    </div>

    <!-- 页脚 -->
    <footer class="bg-[#F5F5F5] text-gray-600">
        <div class="max-w-7xl mx-auto py-12 px-4">
            <div class="xl:grid xl:grid-cols-3 xl:gap-8">
                <div class="space-y-8 xl:col-span-1">
                    <h2 class="text-lg font-semibold text-[#B3927F]">甜品店</h2>
                    <p class="text-sm">为您提供最优质的甜点体验</p>
                </div>
            </div>
            <div class="mt-12 border-t border-gray-200 pt-8">
                <p class="text-base text-gray-400 xl:text-center">
                    &copy; 2024 甜品店. 保留所有权利.
                </p>
            </div>
        </div>
    </footer>

    <!-- 购物车图标 -->
    <a href="./cart.html" class="fixed bottom-8 right-8 bg-white rounded-full p-4 shadow-lg hover:shadow-xl transition-all z-50 group">
        <div class="relative">
            <svg class="w-6 h-6 text-[#B3927F] group-hover:text-[#9A7B69]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z" />
            </svg>
            <span id="cart-count" class="absolute -top-2 -right-2 bg-[#B3927F] text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">0</span>
        </div>
    </a>

    <script>
        // 只保留必要的JavaScript功能
        document.addEventListener('DOMContentLoaded', () => {
            // 添加动动画
            const animateElements = document.querySelectorAll('.animate-on-scroll');
            const observer = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.classList.add('animate-fade-in');
                        observer.unobserve(entry.target);
                    }
                });
            }, { threshold: 0.1 });
            
            animateElements.forEach(element => observer.observe(element));
        });
    </script>
    <script src="js/cart.js"></script>
    <script src="js/main.js"></script>
</body>
</html> 